package com.jqsoft.launcher.activity;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;

import com.jqsoft.launcher.activity.highblood.HBPDiagnosisActivity;
import com.jqsoft.launcher.activity.highblood.HBPScreenActivity;
import com.jqsoft.launcher.R;

/**高血压患者管理
 * @author gujunqi
 * date：2013-12-27 
 */
public class HighBloodPressureActivity extends JQActivity implements OnClickListener {
//	private final String tag = "HighBloodPressureActivity";
	private RelativeLayout hbp_screen_rl;
	private RelativeLayout hbp_diagnosis_rl;
	@Override
	protected int getContentLayout() {
		
		return R.layout.highbloodpressure_layout;
	}

	@Override
	protected void initGui() {
		hbp_screen_rl=(RelativeLayout) findViewById(R.id.hbp_screen_rl);
		hbp_diagnosis_rl=(RelativeLayout) findViewById(R.id.hbp_diagnosis_rl);

	}

	@Override
	protected void initAction() {
		setGoBack();
		hbp_screen_rl.setOnClickListener(this);
		hbp_diagnosis_rl.setOnClickListener(this);

	}

	@Override
	protected void initData() {
		setTitle("高血压患者管理");

	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.title_bar_left_button:
			toHome();
			return;
		case R.id.hbp_screen_rl:
			toNoFinish(HBPScreenActivity.class);
			return;
		case R.id.hbp_diagnosis_rl:
			toNoFinish(HBPDiagnosisActivity.class);
			return;	
		}
		
	}

}
